/**
 * 所有使用SAAS服务端 客户都视为B端客户，所以SDK是以B端开发为需求基础，对接Merch接口
 * @author seeker910
 * @description redjs javascript sdk :site-api.js
 * @description 办公相关api 接口
 */ 
 var officeHost = {
    text:'Office服务',
    name:'site',
    url:'http://localhost:5000/',
    index:'dev/index',
    isLoaded:false,
    useSSL:true , 
    controllers:[
        //{Name:'Meeting',Path:'Meeting',GetDescription:'GetDes'},
        //{Name:'Booking',Path:'Booking',GetDescription:'GetDes'},
        //{Name:'Schedual',Path:'Schedual',GetDescription:'GetDes'},
        {Name:'Xppt',Path:'xppt',GetDescription:'GetDes'}
    ]
};
/* 
*/
Rsd.loadServices(officeHost,[],function(data,state){
    if(state=='serviceLoaded')
   rsd.app.fire('office-api',data);
});
//缓存数据
Rsd.office = Rsd.office||{};

/**
 * 提交日程
 * @param {*} evt 
 */
Rsd.office.submitSchedule= function submitSchedule(evt)
{
    evt.preventDefault();
    Rsd.submit("office.schedule.get",this);
}
 
/**
 * 全文搜索
 * @param {*} evt 
 */
Rsd.office.search = function search(evt)
{
    evt.preventDefault();
    Rsd.submit("office.search.text",this);//
}